package io.terminus.spzx.model.entity.pay;

import io.swagger.v3.oas.annotations.media.Schema;
import io.terminus.spzx.model.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 支付管理Entity实体类
 * @Date 2024-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "支付信息实体类")
public class PaymentInfo extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "订单号")
    private String orderNo;

    @Schema(description = "付款方式：1-微信 2-支付宝")
    private Integer payType;

    @Schema(description = "交易编号（微信或支付）")
    private String outTradeNo;

    @Schema(description = "支付金额")
    private BigDecimal amount;

    @Schema(description = "交易内容")
    private String content;

    @Schema(description = "支付状态：0-未支付 1-已支付")
    private Integer paymentStatus;

    @Schema(description = "回调时间")
    private Date callbackTime;

    @Schema(description = "回调信息")
    private String callbackContent;

}